package com.kyivmohyla.kma2.dao.mapper;

import com.kyivmohyla.kma2.model.Order;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class OrderRowMapper implements RowMapper<Order> {

    @Override
    public Order mapRow(ResultSet rs, int line) throws SQLException {
        OrderResultSetExtractor extractor = new OrderResultSetExtractor();
        return extractor.extractData(rs);
    }

}
